package com.xipu.yygh.feign.service_user;

import com.xipu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description: 用户模块
 * @author: gql
 * @date: 2022/05
 */
@FeignClient("service-user")
@RequestMapping("/api/user/patient")
public interface UserFeignClient {
    /**
     * 获取就诊人信息
     * @param id 就诊人Id
     * @return 就诊人信息
     */
    @GetMapping("inner/get/{id}")
    Patient getPatientOrder(@PathVariable("id") Long id);
}
